generalized algebraic data typeの例文
- Haskell has an open, published specification, and parallelism, and for having a rich type system incorporating recent innovations such as generalized algebraic data types and type families.
- A limited form of dependent types called generalized algebraic data types ( GADT's ) can be implemented in a way that provides some of the benefits of dependently typed programming while avoiding most of its inconvenience.
- For instance, the Haskell's generalized algebraic data types, destroy the principal type property of the language, requiring the use of type annotations or the compiler to " guess " the intended type from among several options.
- Generalized algebraic data types were introduced independently by and prior by as extensions to inductive families of data types " ( or " inductive datatypes " ) found in Coq's Calculus of Inductive Constructions and other dependently typed languages, modulo the dependent types and except that the latter have an additional positivity restriction which is not enforced in GADTs.